//
//  BPRouteHelper.m
//  BPRoutes_Example
//
//  Created by 404 on 2020/9/4.
//  Copyright © 2020 xuhongji. All rights reserved.
//

#import "BPRouteHelper.h"

@implementation BPRouteHelper

+ (void)openURL:(NSURL *)url{

    if ([[UIDevice currentDevice] systemVersion].floatValue >= 10.0) {
        [[UIApplication sharedApplication] openURL:url options:nil completionHandler:nil];
    }else{
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            [[UIApplication sharedApplication] openURL:url];
        });
    }
}

@end
